FROM openjdk:17.0.1-oracle
WORKDIR /app
RUN mkdir "logs" "config"
RUN touch "config/application.yml"
VOLUME ["/app/logs","/app/config"]
COPY app.jar /app/
ENTRYPOINT ["java","-jar","-Dspring.config.additional-location=config/application.yml","-Dspring.profiles.active=prod","app.jar"]
